<!DOCTYPE html>
<html lang="zh_CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box1{
            width: 800px;
            height: 800px;
            background-color: skyblue;
        }
        .box2{
            width: 50px;
            height: 50px;
            background-color: orange;
            /* transition-property用来设计高度或宽度的变形，或者所有 */
            /* transition-property:all; */
            /* transition-duration用来设计变形效果的所需要的时间 */
            transition-duration: 5s;
            /* transition-timing-function: ease;（默认效果）先加速后减速 */
            /* transition-timing-function: ease-in;加速运动 */
            /* transition-timing-function: ease-out;减速运动 */
            /* transition-timing-function: ease-in-out; 先加速后减速*/
            /* transition-timing-function: linear;是匀速直线运动 */
            transition-timing-function: linear;
            /* transition-timing-function: step-end;数完秒数再动 */
            /* transition-timing-function: steps(3);变形所需要的步数 */
            /* 也可以通过贝塞尔曲线来设置运动的轨迹 */
            /* transition-timing-function: cubic-bezier(.17,.67,.95,-0.64); */
        }
        .box3{
            width: 50px;
            height: 50px;
            background-color: orange;
            margin-top: 200px;
            transition-duration: 5s;
            transition-timing-function: linear;
            /* 设置延迟时间5s，5秒后运动 */
            transition-delay: 5s;
            /* transition-timing-function: step-start;动了再数秒数 */
        }
        .box1:hover .box2{
            /* width: 200px;
            height: 200px; */
            margin-left: 750px;
        }
        .box1:hover .box3{
            /* width: 200px;
            height: 200px; */
            margin-left: 750px;
        }
    </style>
</head>
<body>
    <div class="box1">
        <div class="box2"></div>
        <div class="box3"></div>
    </div>
</body>
</html>